package voidgame.core;
import java.util.Random;

public class Star extends CelestialObject{
	
	String name;
	
	int startype;
	final String[] STARTYPE = {"Neutron Star","White Dwarf", "Yellow Dwarf", "Red Dwarf", "Red Giant", "Blue Giant", "Red Super Giant"};
	
	int size; //small, medium, huge, massive
	int temp; //cool, hot, very hot
	
	
	String desc;
	
	
	public Star(String n){
		name = n;
		final int[] STARDIST = {0,1,1,2,2,2,2,2,3,3,3,3,3,3,4,4,4,5,5,5,6};
		Random ran = new Random();
		
		startype=STARDIST[ran.nextInt(STARDIST.length-1)];
		
		switch(startype){
		case 0:	size=0;temp=2;sprite=".//images//celestial//star//star04.png";	break;
		case 1:	size=0;temp=2;sprite=".//images//celestial//star//star05.png";	break;
		case 2:	size=1;temp=1;sprite=".//images//celestial//star//star01.png";	break;
		case 3:	size=1;temp=0;sprite=".//images//celestial//star//star06.png";	break;
		case 4:	size=2;temp=0;sprite=".//images//celestial//star//star03.png";	break;
		case 5:	size=2;temp=2;sprite=".//images//celestial//star//star02.png";	break;
		case 6:	size=3;temp=0;sprite=".//images//celestial//star//star03.png";	break;
		}
		
		spriteSize=1.0;
		
		genDesc();
		
	}
	
	public void genDesc(){
		desc = "A "+STARTYPE[startype];
	}
	
}